import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    showNav:false,
    //是否展示广告
    showAD:true,
    //当前城市
    city:{
      name:"北京",
      ci:1
    }
  },
  mutations: {
    SET_SHOW_NAV(state,status){
      state.showNav = status;
    },
    SET_SHOW_AD(state,status){
      state.showAD = status
    },
    SET_CITY(state,options){
      state.city = options;
    }
  },
  actions: {
  },
  modules: {
  }
})
